package com.chushouya.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("操作日志")
public class OperateLogDTO {

    @ApiModelProperty("模块")
    private String modelName;

    @ApiModelProperty("操作")
    private String operateName;

    @ApiModelProperty("请求URL")
    private String url;

    @ApiModelProperty("请求方式")
    private String method;

    @ApiModelProperty("请求参数")
    private String param;

    @ApiModelProperty("返回参数")
    private String result;

    @ApiModelProperty("业务类型")
    private String businessType;

    @ApiModelProperty("服务类型")
    private String serviceType;

    @ApiModelProperty("操作上下文用户类别")
    private Integer contextUserType;

    @ApiModelProperty("操作上下文用户")
    private String contextUser;

    @ApiModelProperty("主机地址")
    private String ip;

    @ApiModelProperty("操作状态（0正常 1异常）")
    private Integer status;

    @ApiModelProperty("错误消息")
    private String msg;

    @ApiModelProperty("时间")
    private Date time;

}
